package day1.HomeWork;

import java.io.Serializable;

/**
 * ClassName：Teacher
 *
 * @Author：小鱼
 * @Create：2025-08-25 15:44
 */
public class Teacher implements Serializable {
    //姓名
    private String name;
    //年龄
    private int age;
    //工资
    private double wage;

    public Teacher() {
    }

    public Teacher(String name, int age, double wage) {
        this.name = name;
        this.age = age;
        this.wage = wage;
    }
    //get，set函数

    public String getName() {
        return name;
    }

    public void setName(String nmae) {
        this.name = nmae;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getWage() {
        return wage;
    }

    public void setWage(double wage) {
        this.wage = wage;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "nmae='" + name + '\'' +
                ", age=" + age +
                ", wage=" + wage +
                '}';
    }
}
